<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>Blogg demo</title>
	<link href="<?php echo base_url(); ?>assets/css/style.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url(); ?>assets/css/login.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url(); ?>assets/css/blog.css" media="screen" rel="stylesheet" type="text/css" />
	<link href="<?php echo base_url(); ?>assets/css/contact.css" media="screen" rel="stylesheet" type="text/css" />    
	<link href="<?php echo base_url(); ?>assets/css/calendar.css" media="screen" rel="stylesheet" type="text/css" />  
	<link href="<?php echo base_url(); ?>assets/css/register.css" media="screen" rel="stylesheet" type="text/css" />  
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
	<script src="<?php echo base_url(); ?>assets/js/script.js" type="text/javascript" charset="utf-8"></script> 
</head>
<body>
	<div id='greyBg'></div>
	<div id='popupGallery'>
	</div>
	<div id='headerDiv'>
		<p>Virre blog</p>
	</div>
    <div>
    	<div id='calendar'>
			<?php echo $this->calendar->generate();?>
		</div>
    </div>
	<nav>
		<ul>
			<li><a href="<?php echo site_url(); ?>/home/index">Home</a></li>
			<li><a href="<?php echo site_url(); ?>/about/index">About</a></li>
			<li><a href="<?php echo site_url(); ?>/contact/index">Contact</a></li>
			<li><a href="<?php echo site_url(); ?>/register/index">Register</a></li>
			<li><a href="<?php echo site_url(); ?>/gallery/index">Gallery</a></li>
			<li><a href="<?php echo site_url(); ?>/guestbook/guestbook">Guestbook</a></li>
		</ul>
	</nav>  
	<div id='login'>
		<p>
			
			<?php $this->load->helper("authentication");?>
			
		</p>
	</div>
	<div id="wrapper">
		<header>
			<small class='breadcrumbs'>( <?php if($this->uri->segment(1,0))
						{
							echo $this->uri->segment(1,0);
							if($this->uri->segment(2,0))
							{
								echo " &raquo; " . $this->uri->segment(2,0);
								if($this->uri->segment(3,0))
								{
									echo " &raquo; " . $this->uri->segment(3,0);
								}
							} 
						}?> 
			)
			</small>
			<h1><?php echo $title;?></h1>
		</header>
    	<div id='mainContentWrapper'>
    		<?php $this->view($content); ?>
    	</div>  
    	  
	    <div id='footer'>
			<p>
				<small id="copyright">&#169; 2011 Viktor Karlsson</small>
			</p>
			 <p>
			 	<small>Page generated in <?php echo $this->benchmark->elapsed_time(); ?></small>
			 </p>
		</div>
	</div>  
</body>
</html>